package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.ScenicSpot;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScenicSpotMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ScenicSpot record);

    ScenicSpot selectByPrimaryKey(Long id);

    List<ScenicSpot> selectAll();

    int updateByPrimaryKey(ScenicSpot record);

    List<ScenicSpot> selectForList(QueryObject qo);

    List<ScenicSpot> getScenicSpotByRegionId(@Param("regionId") Long regionId,@Param("qo") QueryObject qo);
}